package com.adong.service;

import com.adong.dao.BookDao;
import com.adong.pojo.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author com.adong
 */
@Service
public class BookService {
    //讲dao层对象注入
    @Autowired
    private BookDao bookDao ;

    public void addBook(Book book){
        bookDao.add(book);
    }
    public void deleteBook(Integer id){
        bookDao.delete(id);
    }
}
